class Cat:
    def eat(self):
        print("小猫爱吃鱼")

    def drink(self):
        print("小猫爱喝水")


tom = Cat()
tom.eat()
tom.drink()
print(tom)
addr = id(tom)
print("%d" % addr)
print("%x" % addr)

lazy_cat = Cat()
lazy_cat.eat()
lazy_cat.drink()
print(lazy_cat)
addr_1 = id(lazy_cat)
print("%d" % addr_1)
print("%x" % addr_1)
